package org.loofer.ext.component.info;

public enum NetworkType {
    NONE("NONE", false),
    WIFI("WIFI", true),
    MOBILE_2G("2G", true),
    MOBILE_3G("3G", true),
    MOBILE_4G("4G", true),
    ETHERNET("ETHERNET", true),
    OTHERS("UNKNOWN", true);
    
    private boolean available;
    private String name;

    private NetworkType(String friendlyName, boolean available) {
        setName(friendlyName);
        setAvailable(available);
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public boolean isAvailable() {
        return this.available;
    }

    public void setAvailable(boolean available) {
        this.available = available;
    }
}
